<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>所有学生信息</title>
</head>
<body>
<table>
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>Java成绩</th>
        <th>操作</th>
    </tr>
    <tr th:each="stu : ${stus}">
        <td th:text="${stu.id}"></td>
        <td th:text="${stu.name}"></td>
        <td th:text="${stu.java}"></td>
        <td><a th:href="@{/delete_stu/{id}(id=${stu.id})}">删除</a></td>
    </tr>
</table>
</body>
</html>